using Microsoft.SqlServer.Management.Sdk.Sfc;
using System;

namespace Microsoft.SqlServer.Management.SqlManagerUI.Scripting
{
	internal class ScriptingErrorEventArgs : EventArgs
	{
		private Urn current;

		private Exception error;

		private bool continueScripting;

		public Urn Current
		{
			get
			{
				return this.current;
			}
		}

		public Exception Error
		{
			get
			{
				return this.error;
			}
		}

		public bool ContinueScripting
		{
			get
			{
				return this.continueScripting;
			}
			set
			{
				this.continueScripting = value;
			}
		}

		public ScriptingErrorEventArgs(Urn current, Exception error)
		{
			if (current == null)
			{
				throw new ArgumentNullException("current");
			}
			if (error == null)
			{
				throw new ArgumentNullException("error");
			}
			this.current = current;
			this.error = error;
		}
	}
}
